using MicroMsg.Resource.@string;
using MicroMsg.Scene;
using System;
using System.Windows.Media.Imaging;
namespace MicroMsg.UI.Util
{
	public class ProfileDataMgr
	{
		public static ProfileInfoData GetWXIDInfo(string strID)
		{
			if (string.IsNullOrEmpty(strID))
			{
				return null;
			}
			return new ProfileInfoData
			{
				mStrTitle = strings.Con_Detail_TxtUsrNameLead,
				mStrInfo1 = strID,
				mInfoKind = ProfileInfoKind.Kind_WXID
			};
		}
		public static ProfileInfoData GetRemarkInfo(string strRemark)
		{
			if (string.IsNullOrEmpty(strRemark))
			{
				return null;
			}
			return new ProfileInfoData
			{
				mStrTitle = strings.Con_Detail_TxtRemarkLead,
				mStrInfo1 = strRemark,
				mInfoKind = ProfileInfoKind.Kind_Remark
			};
		}
		public static ProfileInfoData GetAreaInfo(string strArea)
		{
			if (string.IsNullOrEmpty(strArea))
			{
				return null;
			}
			return new ProfileInfoData
			{
				mStrTitle = strings.Con_Detail_TxtAreaLead,
				mStrInfo1 = strArea,
				mInfoKind = ProfileInfoKind.Kind_Area
			};
		}
		public static ProfileInfoData GetSourceInfo(AddContactScene addScene)
		{
			string text = "";
			switch (addScene)
			{
			case AddContactScene.MM_ADDSCENE_LBS:
				text = strings.Con_Detail_txtAddSceneLbs;
				break;
			case AddContactScene.MM_ADDSCENE_PF_SHAKE_PHONE_PAIR:
			case AddContactScene.MM_ADDSCENE_PF_SHAKE_PHONE_GROUP:
			case AddContactScene.MM_ADDSCENE_PF_SHAKE_PHONE_OPPSEX:
			case AddContactScene.MM_ADDSCENE_SHAKE_SCENE1:
			case AddContactScene.MM_ADDSCENE_SHAKE_SCENE2:
			case AddContactScene.MM_ADDSCENE_SHAKE_SCENE3:
			case AddContactScene.MM_ADDSCENE_SHAKE_SCENE4:
				text = strings.Con_Detail_txtAddSceneShake;
				break;
			case AddContactScene.MM_ADDSCENE_BOTTLE:
				text = strings.Con_Detail_txtAddSceneBottle;
				break;
			case AddContactScene.MM_ADDSCENE_QRCode:
				text = strings.Con_Detail_txtAddSceneQRCode;
				break;
			}
			if (string.IsNullOrEmpty(text))
			{
				return null;
			}
			return new ProfileInfoData
			{
				mStrTitle = strings.Con_Detail_txtAddSceneTitle,
				mStrInfo1 = text,
				mInfoKind = ProfileInfoKind.Kind_Source
			};
		}
		public static ProfileInfoData GetVerifyInfo(string strVerify)
		{
			if (string.IsNullOrEmpty(strVerify))
			{
				return null;
			}
			return new ProfileInfoData
			{
				mStrTitle = strings.COM_VerifyTag,
				mStrInfo2 = strVerify,
				mInfoKind = ProfileInfoKind.Kind_Verify
			};
		}
		public static ProfileInfoData GetQQInfo(string strNick, string strQQNum, BitmapImage bitmapImage_0 = null)
		{
			if (string.IsNullOrEmpty(strQQNum))
			{
				return null;
			}
			return new ProfileInfoData
			{
				mStrTitle = strings.Con_QQNum,
				mStrInfo1 = strNick,
				mStrInfo2 = strQQNum,
				mBitMapImg = bitmapImage_0,
				mInfoKind = ProfileInfoKind.Kind_QQ
			};
		}
		public static ProfileInfoData GetMoblieInfo(string strNick, string strMoblieNum, BitmapImage bitmapImage_0 = null)
		{
			if (string.IsNullOrEmpty(strMoblieNum))
			{
				return null;
			}
			return new ProfileInfoData
			{
				mStrTitle = strings.Con_Detail_TxtPhoneLead,
				mStrInfo1 = strNick,
				mStrInfo2 = strMoblieNum,
				mBitMapImg = bitmapImage_0,
				mInfoKind = ProfileInfoKind.Kind_Mobile
			};
		}
		public static ProfileInfoData GetTencentWeiboInfo(string strNick, string strWeiboNickName, string strWeiboUrl)
		{
			string[] array = strWeiboUrl.Split(new char[]
			{
				'/'
			});
			ProfileInfoData profileInfoData = new ProfileInfoData();
			profileInfoData.mStrTitle = strings.FF_ShareWeixin_Entry_Microblog;
			strWeiboNickName = (profileInfoData.mStrInfo1 = strWeiboNickName + "(@" + array[array.Length - 1] + ")");
			profileInfoData.mStrInfo2 = strWeiboUrl;
			profileInfoData.mInfoKind = ProfileInfoKind.Kind_QBlog;
			return profileInfoData;
		}
	}
}
